<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$bar="出題者のリスト";
        echo '<table border=1 align=center width=600px>';
        echo '<tr><td colspan=6 align=center class=bar>'.$bar.'</td></tr>';

        echo '
              <th>ユーザーID</th>
              <th>メールアドレス</th>
              <th>名前</th>
              <th>アドレス</th>
              <th>電話番号</th>
              <th>操作</th>';
        foreach($query_list_manager as $row){
            //$images='<img src="'.base_url().'application/templates/images/'.$row->staff_avarta.'" width=100 height=70>';
            //$details = anchor("user/loadUpdateForm/$row->Staff_ID",$images);
            echo "<tr>
                        <td >$row->id_mk</td>
                        <td >$row->email</td>
                        <td >$row->name</td>
                        <td >$row->address</td>
                        <td >$row->phone</td>";

                $titleEditMaker = '<img src ="'.base_url().'public/frontend/images/edit.gif" width=20 height=15 />';
                $titleDeleteMaker = '<img src ="'.base_url().'public/frontend/images/delete.png" width=20 height=15 onclick="return checkLink();" />';
                $edit_maker = anchor("manager/update_maker/$row->id_mk",$titleEditMaker);
                $delete_maker = anchor("manager/delete_maker/$row->id_mk",$titleDeleteMaker);
                echo "<td align=\"center\">$edit_maker $delete_maker</td></tr>";
            }
            $titleInsertManager = '<img src ="'.base_url().'public/frontend/images/add.jpeg" width=40 height=30 title="出題者の作成"/>';
            $insert_manager = anchor("manager/add_maker",$titleInsertManager);
            echo '<tr><td colspan=6 align=center>'.$insert_manager.'</td></tr>';
        echo '</table>';
?>
